<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>css常用样式</title>

    <style type="text/css">
        /*设置整体背景色*/
        /*设置整个背景色*/
        /*body{background-color: yellow;*/
        /*    background-image:url("../imgs/pg.jpg");*/
        /*    background-position: center;*/
        /*    background-repeat: no-repeat;*/
        /*     }*/
        ul
        {
            list-style:square ;
            list-style-image: url("../imgs/pg.jpg");

        }
        h1{background-color: red}
        h2{background-color: blue}
        p{background-color: green}
    </style>
</head>
<body>
<h1>我设置了该句话的背景色为红色</h1>
<h2>我设置了该句话的背景色为蓝色</h2>
<p>我设置了该句话的背景色为绿色</p>
<ul>
    <li>猫咪</li>
    <li>动物</li>
</ul>
</body>
</html>